<div class="main edit-info-jiuzheng safe-detail">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">工作台>安全活动>
      <span class="fs-theme-color">安全教育培训</span>
      </span>
    </div>
    <go-back></go-back>
  </div>
  <div class="main-content">
    <div class="container-header fs-16">
      <span>安全教育培训</span>
    </div>
    <div class="content-item">
      <div class="content-item-header fs-14">
        <label>基本信息</label>
      </div>
      <form class="content-item-content fs-0 fs-theme-color">
        <div class="pa-form-control">
          <label class="text-right width175"><b>*</b>教育培训主题：</label>
          <input type="text" class="form-control-input minWidth250" ng-model="vm.data.activity.name">
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">培训方式：</label>
          <select class="form-control-input minWidth250" ng-model="vm.data.activity.way">
            <option value="">请选择</option>
            <option value="1">讲解 </option>
            <option value="2">视频</option>
          </select>
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">组织部门：</label>
          <input type="text" class="form-control-input minWidth250" ng-model="vm.data.activity.organizer">
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">主讲人：</label>
          <input type="text" class="form-control-input minWidth250" ng-model="vm.data.activity.speaker">
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">培训时间：</label>
          <input type="text" class="form-control-input minWidth250 date-picker" ng-datepicker ng-model="vm.data.activity.startTime">
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">培训地点：</label>
          <input type="text" class="form-control-input minWidth250" ng-model="vm.data.activity.site">
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">参加部门：</label>
          <multi-select
              ms-model="vm.view.joinDepartmentObj"
              ms-options="dept.id as dept.name for dept in deptParams"></multi-select>
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">学时：</label>
          <input type="text" class="form-control-input minWidth250" ng-model="vm.data.activity.period">
        </div>
        <div class="pa-form-control">
          <label class="text-right width175">记录人：</label>
          <input type="text" class="form-control-input minWidth250" ng-model="vm.data.activity.recorder">
        </div>
        <div class="pa-form-control pa-width-100" style="display: block;">
          <label class="text-right width175">教育培训内容：</label>
          <label style="width:auto;padding-right: 5px;color:black">内容编辑</label>
          <input class="radio-radius" type="radio" name="pa-radio" value="1"ng-model="vm.data.isEdit">
          <label style="width:auto;padding-right: 5px;color:black">见附件</label>
          <input class="radio-radius" type="radio" name="pa-radio" value="0" ng-checked="true" ng-model="vm.data.isEdit">
        </div>
        <div class="pa-form-control pa-width-100" ng-show="vm.data.isEdit == 1"
          style="box-sizing: border-box;padding-left: 150px;">
          <textarea class="context-textarea"
            ng-model="vm.data.activity.content"></textarea>
        </div>
      </form>
    </div>
    <div class="info-item content-item">
      <div class="info-item-header fs-14">
        <label class="info-item-header-label">附件信息</label>
        <div class="pa-operate-add fr fs-14 fs-theme-color">
          <a class="pa-btn-a"
            attachment-uploader
            data-url="/api/v1/common/uploadFile?folderName=safeActivity"
            data-target=".file-list"
            ng-model="vm.view.files">
            <i class="iconfont icon-add fs-14"></i>
            <span>新增</span>
          </a>
        </div>
      </div>
      <div class="file-list"></div>
    </div>
    <div class="pa-btn-area">
      <button class="pa-btn pa-btn-longer" type="button" ng-click="vm.submitActivityForm(worker)">保存</button>
      <button class="pa-btn pa-btn-longer reset-btn" type="button" ui-sref="toDoSafeActivities">取消</button>
    </div>
  </div>
</div>
